package com.itheima.blog.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.blog.article.dto.AnswerDto;
import com.itheima.blog.article.dto.CommentDto;
import com.itheima.blog.article.entity.TComment;
import com.itheima.blog.article.query.CommentQuery;
import com.itheima.blog.article.query.PageQueryDTO;
import com.itheima.blog.article.vo.CommentVo;
import com.itheima.blog.article.vo.ReplyVO;
import com.itheima.common.domain.PageReqDto;
import com.itheima.common.domain.PageResDto;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author lin
 * @since 2023-07-12
 */
public interface ITCommentService extends IService<TComment> {
    PageResDto<CommentVo> findPageList(CommentDto commentDto);

    void delComment(List<Long> ids);
    PageResDto<ReplyVO> findPageComment(PageQueryDTO pageQueryDTO);

    void saveAnswer(AnswerDto answerDto);

    void delMyComment(CommentQuery query);

    PageResDto<TComment> findCommentList(PageReqDto pageReqDto);

    PageResDto<TComment> findReplyList(PageReqDto pageReqDto);
}